package cn.iocoder.ny.module.mall.mapper;

import cn.iocoder.ny.module.mall.controller.admin.config.vo.MallConfigPageVo;
import cn.iocoder.ny.module.mall.controller.admin.favorites.dto.MallProductFavoriteDTO;
import cn.iocoder.ny.module.mall.controller.admin.favorites.vo.MallProductFavoritePageVo;
import cn.iocoder.ny.module.mall.domain.MallConfig;
import cn.iocoder.ny.module.mall.domain.MallUserFavorites;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MallUserFavoritesMapper extends BaseMapper<MallUserFavorites> {
    int updateBatch(List<MallUserFavorites> list);

    int updateBatchSelective(List<MallUserFavorites> list);

    int batchInsert(@Param("list") List<MallUserFavorites> list);


    IPage<MallProductFavoriteDTO> queryProductFavoritesList(IPage<MallProductFavoriteDTO> page,  @Param("reqVO") MallProductFavoritePageVo mallProductFavoritePageVo);
}